<template>
  <a-modal title-align="start" title="SPU详情" :mask-closable="false" v-model:visible="showvisible" @cancel="showvisible = false" :width="600">
    <template #footer class="modal-footer">
      <a-button @click="showvisible = false">取消</a-button>
      <a-button type="primary" @click="showvisible = false">确定</a-button>
    </template>
  </a-modal>
</template>

<script lang="ts" setup>
  import { onMounted, ref, computed } from 'vue'
  let props = defineProps(['modelValue', 'type', 'info'])
  let emits = defineEmits(['save', 'update:modelValue'])
  let showvisible = computed({
    get() {
      return props.modelValue
    },
    set(val) {
      emits('update:modelValue', val)
    },
  })

  onMounted(() => {
    console.log(props.info)
  })
</script>

<style lang="less" scoped></style>
